package cn.edu.scau.cmi.chenxiaoqin.composite.consistent;

import java.util.ArrayList;
import java.util.List;

public class ConsistentTeam extends ConsistentOrganization{
	private String teamName;
	private List<ConsistentOrganization> team;
	public ConsistentTeam(String n) {
		team = new ArrayList<ConsistentOrganization>();
		teamName=n;
	}
	public void addPerson(ConsistentOrganization person) {
		team.add(person);
	}
	public void removePerson(ConsistentOrganization person) {
		team.remove(person);
	}
	@Override
	public String getNAME() {
		// TODO Auto-generated method stub
		return teamName;
	}
}
